package com.handa.documentManager.entity.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OnlyofficeFileInfo对象", description = "")
@TableName("onlyoffice_file_info")
public class OnlyofficeFileInfoDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String absolutePath;

    private String fileKey;

    private String bucket;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //返回时间类型
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //接收时间类型  支持前端字符串日期传入
    private Date updateTime;


}
